package com.consult.service.impl;

import com.consult.config.dto.LoginDto;
import com.consult.entity.Admin;
import com.consult.mapper.AdminMapper;
import com.consult.service.IAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-22
 */
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements IAdminService {

    @Override
    public LoginDto getByUserName(String name) {
        return baseMapper.getByUserName(name);
    }

    @Override
    public LoginDto findAdminById(Long userId) {
        return baseMapper.findAdminById(userId);
    }
}
